package com.wicket.okrapp.integration.dto;

import com.wicket.okrapp.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Objects;

import lombok.Data;

/**
 * @desc DutyBodyDto
 * @使用场景
 */
@Data
public class DutyBodyDto extends BaseDto implements Serializable {

  /**
   * 冗余内容表主键ID
   */
  @ApiModelProperty("冗余内容表主键ID")
  private String entityId;

  /**
   * 责任主体ID
   */
  @ApiModelProperty("责任主体ID ")
  private String dutyBodyId;

  /**
   * 责任主体名称
   */
  @ApiModelProperty("责任主体名称 ")
  private String dutyBodyName;

  /**
   * 虚拟组织成员就职记录ID
   */
  @ApiModelProperty("虚拟组织成员就职记录ID")
  private String virtualOrgInductionRecordId;

  /**
   * 真实头像
   */
  @ApiModelProperty("真实头像")
  private String userFace;

  /**
   * 真实姓名
   */
  @ApiModelProperty("真实姓名")
  private String idCardName;

  /**
   * 用户昵称
   */
  @ApiModelProperty("用户昵称")
  private String nickName;

  /**
   * 虚拟组织下部门ID
   */
  @ApiModelProperty("虚拟组织下部门ID")
  private String deptId;

  /**
   * 部门简称
   */
  @ApiModelProperty("部门简称")
  private String deptShortName;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    DutyBodyDto that = (DutyBodyDto) o;
    return (
      entityId == that.entityId &&
      dutyBodyId == that.dutyBodyId &&
      dutyBodyName == that.dutyBodyName &&
      virtualOrgInductionRecordId == that.virtualOrgInductionRecordId &&
      userFace == that.userFace &&
      idCardName == that.idCardName &&
      nickName == that.nickName &&
      deptId == that.deptId &&
      deptShortName == that.deptShortName
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(
      super.hashCode(),
      entityId,
      dutyBodyId,
      dutyBodyName,
      virtualOrgInductionRecordId,
      userFace,
      idCardName,
      nickName,
      deptId,
      deptShortName
    );
  }

}
